package com.yrk.service.impl;

import com.yrk.dao.UserDao;
import com.yrk.entity.User;
import com.yrk.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service("userService")
public class UserServiceImpl implements UserService {
    @Autowired
    private UserDao userDao;
    @Override
    public User findByUsername(String username) {
        return userDao.findByUsername(username);
    }

    @Override
    public String findName(String username) {
        return userDao.findName(username);
    }

    @Override
    public int registUser(User user) {
        return userDao.registUser(user);
    }
}
